import axiosIns from '@/utils/request';
const proxyStr = '/proxy_abhd';

export const fetchXfrw = {
  pageList: (data) => {
    const { pageIndex = 1, pageSize = 10 } = data;
    delete data.pageIndex;
    delete data.pageSize;
    return axiosIns.post(`${proxyStr}/abhd/rwsb/queryRwsbPageList`, data, {
      params: { pageIndex, pageSize }
    });
  },
  addItem: (data) => {
    return axiosIns.post(`${proxyStr}/abhd/rwsb/addRwsb`, data);
  },
  updateItem: (data) => {
    return axiosIns.post(`${proxyStr}/abhd/rwsb/upateRwsb`, data);
  },
  getItem: (id) => {
    return axiosIns.get(`${proxyStr}/abhd/rwsb/queryRwsbXqxx/${id}`);
  },
}